package com.yootk.service.impl;

import com.yootk.service.IMessageService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class MessageServiceImpl implements IMessageService {

    @Override
    public String echo(String msg) {
        if (!msg.contains("sun")){
            throw new RuntimeException("你是不爱我了吗") ;
        }
        return "【echo】" + msg;
    }
}
